package com.perfma.xtest.http;

import com.google.common.collect.Lists;

import java.util.Iterator;
import java.util.List;

/**
 *
 *
 * @author: junhui.si
 * @date: 2024-05-14 15:50
 **/
public class Ass {
    public static void main(String[] args) {
        List<Integer> list = Lists.newArrayList(1, 2, 3);
        Iterator<Integer> it = list.iterator();
        while (it.hasNext()){
            if (it.next() == 2){
                it.remove();
            }
        }
        System.out.println(list);
    }
}
